package org.gten.gegedexin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author Eric
 * @date 2023/6/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "draft")
public class DraftPojo {
    @TableId(value = "draft_id", type = IdType.AUTO)
    private int draftId;

    @TableField(value = "receiver")
    private String receiver;

    @TableField(value = "sender")
    private String sender;

    @TableField(value = "header")
    private String header;

    @TableField(value = "context")
    private String context;

    @TableField(value = "edit_time")
    private LocalDateTime editTime;

    public void setEditTime(LocalDateTime editTime) {
        this.editTime = editTime;
    }

    public void setDraftId(int draftId) {
        this.draftId = draftId;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return "DraftPojo{" +
                "draftId='" + draftId + '\'' +
                ", receiver='" + receiver + '\'' +
                ", sender='" + sender + '\'' +
                ", header='" + header + '\'' +
                ", context='" + context + '\'' +
                '}';
    }
}
